package com.gy.api;


import com.aaa.entity.OrderBackfeeItem;
import com.aaa.vo.Result;
import com.gy.service.OrderBackfeeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author GaoYa
 * @Date 2023/3/24 18:06
 * @Version 1.5
 */
@RestController
@RequestMapping("/charge/api/item")
public class OrderBackItemController {
    @Autowired
    private OrderBackfeeItemService orderBackfeeItemService;

    /**
     * 退费查询的查看详情
     * @param orderId
     * @return
     */
    @GetMapping("/findUserByStatus/{orderId}")
    public Result<List<OrderBackfeeItem>> findUserBackfe(@PathVariable String orderId){
        return orderBackfeeItemService.findAllByUserId(orderId);
    }

}
